package cn.yunhe.pojo;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Account implements Serializable {
    private int id;
    private String aname;
    private Double amoney;
    private String adate;
    private Set<Record>fromRecordSet=new HashSet<>();
    private Set<Record>toRecordSet=new HashSet<>();

    public Account() {
    }

    public Account(int id) {
        this.id = id;
    }

    public Account(String aname, Double amoney, String adate) {
        this.aname = aname;
        this.amoney = amoney;
        this.adate = adate;
    }

    public Account(int id, String aname, Double amoney, String adate) {
        this.id = id;
        this.aname = aname;
        this.amoney = amoney;
        this.adate = adate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public Double getAmoney() {
        return amoney;
    }

    public void setAmoney(Double amoney) {
        this.amoney = amoney;
    }

    public String getAdate() {
        return adate;
    }

    public void setAdate(String adate) {
        this.adate = adate;
    }

    public Set<Record> getFromRecordSet() {
        return fromRecordSet;
    }

    public void setFromRecordSet(Set<Record> fromRecordSet) {
        this.fromRecordSet = fromRecordSet;
    }

    public Set<Record> getToRecordSet() {
        return toRecordSet;
    }

    public void setToRecordSet(Set<Record> toRecordSet) {
        this.toRecordSet = toRecordSet;
    }
}
